{% extends 'layout.html' %}
{% load mytags %}
{% block content %}
    <div>
        <a href="" class="btn btn-primary btn-sm">增加</a>
    </div>
    <form action="" method="get" class="form-inline pull-right">
        <input type="text" name="query" class="form-control">
        <button class="btn btn-sm btn-primary">查询</button>
    </form>
    <table class="table-hover table-bordered table">
        <thead>
        <tr>
            <th>序号</th>
            <th>客户</th>
            <th>费用数额</th>
            <th>交款日期</th>
            <th>销售</th>
            <th>课程名</th>
            <th>所报班级</th>
            <th>审核</th>
            <th>确认日期</th>
            <th>确认人</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody>
        {% for payment_record in payment_records %}
            <tr>
            <td>{{ forloop.counter }}</td>
            <td>{{ payment_record.customer }}</td>
            <td>{{ payment_record.paid_fee }}</td>
            <td>{{ payment_record.date }}</td>
            <td>{{ payment_record.consultant }}</td>
            <td>{{ payment_record.course }}</td>
            <td>{{ payment_record.enrolment_class }}</td>
            <td>{{ payment_record.status }}</td>
            <td>{{ payment_record.confirm_date }}</td>
            <td>{{ payment_record.confirm_user }}</td>
            <td><a href="{% url_tag 'crm:payment_record_edit' request payment_record.pk %}" class="btn btn-danger btn-sm">编辑</a></td>
            </tr>
        {% endfor %}

        </tbody>
    </table>
    <nav aria-label="Page navigation">
        <ul class="pagination">
            {{ page_html }}
        </ul>
    </nav>
{% endblock %}